<template>
    <fieldset>
        <legend>其他组件2</legend>
        <Modal :visible="isShow" @on-confirm="confirm" @on-cancel="cancel">
            <h2 slot="tip">警告</h2>
            <h4 slot="content">正在充值，是否继续</h4>
        </Modal>
        <button @click="openModal">点击显示模态框</button>
    </fieldset>
</template>
<script>
    import Modal from "./modal";
    import modalMix from './mixins/modal.js'
    export default {
        mixins: [modalMix],
        components:{
            Modal
        }
    }
</script>